import {createAPI} from '@/utils/request'

export const list = data => createAPI('/sys/user/page', 'post', data)
export const simple = data => createAPI('/sys/user/simple', 'post', data)
export const add = data => createAPI('/sys/user/save', 'post', data)
export const update = data => createAPI(`/sys/user/update`, 'post', data)
export const remove = data => createAPI(`/sys/user/delete`, 'post', data)
export const detail = data => createAPI(`/sys/user/findById`, 'post', data)
export const assignRoles = data => createAPI(`/sys/user/assignRoles`, 'post', data)
